const { override, fixBabelImports, addWebpackAlias, addDecoratorsLegacy } = require('customize-cra')
const path = require('path')
function resolve(dir) {
    return path.join(__dirname, '.', dir)
}
module.exports = override(
    addWebpackAlias({
        ["@assets"]: path.resolve(__dirname, "./src/assets"),
        ["@components"]: path.resolve(__dirname, "./src/components"),
        ["@pages"]: path.resolve(__dirname, "./src/pages"),
        ["@image"]: path.resolve(__dirname, "./src/image"),
        ["@store"]: path.resolve(__dirname, "./src/store"),
        ["@styles"]: path.resolve(__dirname, "./src/styles"),
        ["@util"]: path.resolve(__dirname, "./src/util"),
        ["@config"]: path.resolve(__dirname, "./src/config")
    }),
    addDecoratorsLegacy()
)